<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>帮助中心</title>
    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/back.css" />
    <style>
    /*.back1 {
        width: 15px !important;
        height: 24px !important;
        margin: 10px 0px 10px 15px;
    }*/

    </style>
</head>

<body>
<div id="vm">
    <header class="aui-bar aui-bar-nav" id="aui-header">
        <div class="aui-pull-left" onclick="closeWin()">
            <img src="../../image/login/back.png" class="back1" alt="" >
        </div>
        <div class="aui-title">帮助中心</div>
        <div class="aui-pull-right" onclick="OpenFeedBackWin()" style="font-size:13px" v-if="isloginflag">意见反馈</div>
        <div class="aui-pull-right" onclick="loginwin()" v-else  style="font-size:13px">意见反馈</div>
    </header>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.2.5.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/rest.js"></script>
<script type="text/javascript" src="../../script/login.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/faskclick.js"></script>
<script type="text/javascript">
var uid=$api.getStorage('uid');
var vm = new Vue({
    el: '#vm',
    data: {
        isloginflag: false
    },
    created: function() {
        var _this = this;
        apiready = function() {
          var header = $api.byId('aui-header');
          if ('addEventListener' in document) {
              document.addEventListener('DOMContentLoaded', function() {
                  FastClick.attach(document.body);
              }, false);
          }
          $api.fixStatusBar(header);
          _this.init();

          var headerPos = $api.offset(header);
          api.openFrame({
              name: 'verify-question_frm',
              url: 'verify-question_frm.html',
              bounces: false,
              rect: {
                  x: 0,
                  y: headerPos.h,
                  w: 'auto',
                  h: api.winHeight - headerPos.h
              },
              reload:true,
              animation:{
                  type:"none",                //动画类型（详见动画类型常量）
                  subType:"from_right",       //动画子类型（详见动画子类型常量）
                  duration:300                //动画过渡时间，默认300毫秒
              },
          })
        };
    },
    methods: {
        init: function() {
            var _this = this;
            api.addEventListener({
                name: 'loginsuccess'
            }, function(ret, err){
                _this.isloginflag=true;
            });

            if(uid){
             _this.isloginflag=true;
           }else{
             _this.isloginflag=false;
           }
        },
    }
})
function loginwin() {
      api.openFrame({
          name: 'login_introduction',
          url: '../myself/login_introduction.html',
          rect: {
              x: 0,
              y: 0,
              w: 'auto',
              h: 'auto'
          },
          bounces: false,
          bgColor: 'rgba(0,0,0,0.7)',
          vScrollBarEnabled: true,
          hScrollBarEnabled: true
      });
  }
function OpenFeedBackWin() {
    api.openWin({
        name: 'verifyfeedback',
        url: './verify-feedback_win.html',
    });
}
function closeWin() {
    api.closeWin({});
}
</script>
</html>
